<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
import routerInterception from '@/utils/router';
import { http } from '@/utils/http';
import { useUserStore } from '@/stores/useUserStore';
// #ifdef APP-PLUS
import checkappupdate from '@/utils/checkAppUpdate';
// #endif

onLaunch(() => {
	console.log('App Launch!', process.env.NODE_ENV);
	routerInterception();
	// #ifdef APP-PLUS
	process.env.NODE_ENV === 'production' &&
		checkappupdate.check({
			title: '检测到有新版本！',
			content: '请升级app到最新版本！',
			canceltext: '暂不升级',
			oktext: '立即升级'
		});
	// #endif
});
onShow(() => {
	console.log('App Show!');
});
onHide(() => {
	console.log('App Hide!');
});
function getAllUserInfo() {}
</script>

<style lang="scss">
@import '/uni_modules/uview-plus/theme.scss';
@import '/uni_modules/uview-plus/index.scss';
/*每个页面公共css */
#app {
}
.uni-flex-item {
	display: flex;
	align-items: center;
	width: 100%;
}
</style>
